import 'package:taonile/generated/json/base/json_field.dart';
import 'package:taonile/generated/json/jingang_for_home_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class JingangForHomeEntity {

	late int code=0;
	late String msg;
	late List<JingangForHomeData> data=[];
  
  JingangForHomeEntity();

  factory JingangForHomeEntity.fromJson(Map<String, dynamic> json) => $JingangForHomeEntityFromJson(json);

  Map<String, dynamic> toJson() => $JingangForHomeEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class JingangForHomeData {

	late String id;
	late String name;
	late String sort;
	late String link;
	@JSONField(name: "img_path")
	late String imgPath;
	@JSONField(name: "created_at")
	late String createdAt;
	@JSONField(name: "updated_at")
	late String updatedAt;
  @JSONField(name: "cate_id")
  late String cateId;

  
  JingangForHomeData();

  factory JingangForHomeData.fromJson(Map<String, dynamic> json) => $JingangForHomeDataFromJson(json);

  Map<String, dynamic> toJson() => $JingangForHomeDataToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}